import { createApp } from 'vue'
import { createPinia } from 'pinia'
import './assets/base.css'

import App from './App.vue'
import router from './router'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import { registerMicroApps, start, initGlobalState } from 'qiankun'
import { registerApps } from '@/utils/qiankunRegister'
const app = createApp(App)

app.use(ElementPlus)
app.use(createPinia())
app.use(router)

app.mount('#app')


// 在路由准备就绪后注册和启动子应用
router.isReady().then(() => {
  registerApps()
})
